<?php 
require_once('Admin/Common/template/inc_admin.php');

$ntid = $_GET['id'];
$sql = "select * from newstype where ntid='$ntid'";
$result = mysql_query($sql) or die('查询失败！'.mysql_error());
$row = mysql_fetch_assoc($result);
$newstype = $row['newstype'];
?>
<div class="col-md-offset-3 col-md-4">
  <h3 class="text-center">修改新闻类别</h3>
  <br/>
  <form method="post" action="admin.php?c=newstype&m=update" enctype="multipart/form-data">
    <table class="table table-bordered">
      <tr>
        <td width="15%">编号</td>
        <td width="85%"><?php echo $ntid; ?>
          <input type="hidden" name="ntid" value=<?php echo $ntid; ?>>
        </td>
      </tr>
      <tr>
        <td>类别名</td>
        <td>
          <input type="text" name="newstype" size=30 value=<?php echo $newstype; ?>>
        </td>
      </tr>
    </table>
    <div class="form-group">
      <div class="col-md-12 text-center">
        <input type="submit" class="btn btn-success" value="确认修改">
        <input type="reset" class="btn btn-primary" value="重   置">
      </div>
    </div>
  </form>
</div>
